cmake_minimum_required(VERSION 4.0)
project(reverse_proxy)

set(CMAKE_CXX_STANDARD 20)
# 找到 OpenSSL（MSYS2 UCRT64 包装好的）
find_package(OpenSSL REQUIRED)

add_executable(reverse_proxy reverse_proxy.cpp AppDirectory.cpp KedisConfig.cpp)
target_compile_options(reverse_proxy PRIVATE -Wa,-mbig-obj)
target_link_directories(reverse_proxy PRIVATE e:/msys64/ucrt64/lib)
target_include_directories(reverse_proxy PRIVATE e:/msys64/ucrt64/include)
#target_link_libraries(reverse_proxy boost_json-mt ws2_32 mswsock)

# 给你的可执行目标链接
target_link_libraries(reverse_proxy
        PRIVATE
        OpenSSL::SSL         # = -lssl
        OpenSSL::Crypto      # = -lcrypto
        ws2_32 mswsock       # 你已有的 Windows 库
)